<template>
	<view class="container">
		<scroll-view class="list-wrapper" scroll-y="true" v-if="listData.length > 0">


			<view class="item" v-for="item in listData" :key="item.value">
				<view class="row">
					<view class="">
						终端类型
					</view>
					<view class="">
						{{item.brandNo}}
					</view>
				</view>
				<view class="row">
					<view class="">
						型号
					</view>
					<view class="">
						{{item.hardwareNo}}
					</view>
				</view>
				<view class="row">
					<view class="">
						TUSN号
					</view>
					<view class="">
						{{item.sn}}
					</view>
				</view>
				<view class="row">
					<view class="">
						店铺名称
					</view>
					<view class="">
						{{item.lsMerchantName}}
					</view>
				</view>
			</view>







		</scroll-view>
	</view>
</template>

<script setup>
	import {
		onLoad,
		onShow
	} from "@dcloudio/uni-app";
	import {
		ref,
		reactive
	} from "vue";
	import {
		showToast
	} from "@/utils/toast";
	import {
		getTerminalList
	} from "@/api/mine.js";
	import {
		useStore
	} from "@/store";

	/** store实例 */
	const store = useStore();
	let listData = ref([]);
	onLoad((val) => {
		console.log("val888", val)
		terminalList();
	});
	onShow(() => {
		const pages = getCurrentPages();

	});

	function terminalList() {
		getTerminalList(store.userInfo.userId).then((res) => {
				console.log("res=" + res)
				listData.value = res;

			})
			.catch((err) => {

			});
	}
</script>
<style lang="scss" scoped>
	@import "./index.scss";
</style>